//
//  EFBaseView.h
//  EFHealth
//
//  Created by nf on 15/9/17.
//  Copyright (c) 2018年 ef. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "UIView+Ext.h"  
#import "AppMacro.h"
#import "PublicUtils.h"


//以iPhone5为主尺寸
//4 3.5 320*480 5/5s/se 4 320*568 6/6s 4.7 375*667 6p/6ps 5.5 414*736
CG_INLINE CGFloat
CGFloatAutoWidth(CGFloat width){
    return (SCREEN_WIDTH/320.0f)*width ;
}

CG_INLINE CGFloat
CGFloatAutoHeight(CGFloat height){
    return (SCREEN_HEIGHT/568.0f)*height ;
}

CG_INLINE CGRect
CGRectAutoFrame(CGFloat x,CGFloat y,CGFloat width,CGFloat height){
    return CGRectMake(x,y,CGFloatAutoWidth(width), CGFloatAutoHeight(height));
}

CG_INLINE CGSize
CGSizeAutoSize(CGFloat width , CGFloat height){
    return CGSizeMake(CGFloatAutoWidth(width), CGFloatAutoHeight(height));
}

CG_INLINE CGPoint
CGPointAutoSize(CGFloat x ,CGFloat y){
    return CGPointMake(CGFloatAutoWidth(x), CGFloatAutoHeight(y)) ;
}


@interface EFBaseView : UIView

@end
